package com.ferry.wallpaper.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("COMMENT")
public class Comment {

    @TableId(value = "COMMENT_ID",type = IdType.ASSIGN_ID)
    private Long commentId;

    @TableField(value = "USER_ID")
    private Long userId;

    @TableField(value = "USER_NAME")
    private String userName;

    @TableField(value = "WALL_ID")
    private Long wallId;

    @TableField(value = "TEXT")
    private String text;
}
